﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ComeSeeThis_MVC2.Models
{
    [MetadataType(typeof(CompanyValidation))]
    public partial class Company
    {
    }
    public class CompanyValidation
    {
        [Required(ErrorMessage = "Company Name is required")]
        [StringLength(50, ErrorMessage = "Company name may not be longer than 50 characters")]
        public string CompanyName { get; set; }
    }
}